package com.example.design.c.decorator;

/**
 * 测试装饰器模式
 */
public class TestDecorator {

    public static void main(String[] args) {
        Shape circle=new Circle();
        ShapeDecorator redCircle=new RedShapeDecorator(circle);
        circle.draw();
        redCircle.draw();
    }
}
